public class OrderServiceProxy implements OrderService {

    private OrderService orderService;

    public OrderServiceProxy(OrderService orderService) {
        this.orderService = orderService;
    }

    @Override
    public void generateOrder()  {
        System.out.println("Order Service Proxy：开始处理订单生成...");
        orderService.generateOrder();
        System.out.println("Order Service Proxy：订单生成结束...");
    }

    @Override
    public void modifyOrder()  {
        System.out.println("Order Service Proxy：开始处理订单修改...");
        orderService.modifyOrder();
        System.out.println("Order Service Proxy：订单修改结束...");
    }

    @Override
    public void deleteOrder()  {
        System.out.println("Order Service Proxy：开始处理订单删除...");
        orderService.deleteOrder();
        System.out.println("Order Service Proxy：订单删除结束...");
    }
}
